/**
 * Created by SunnyLau on 2017/7/31.
 */

// dsp 一些常量
define(function() {
	var premium_rule = {
		COMMON: 1, // 普通溢价
	};
	
	return {
		BID_TYPE: {
			PUBLIC: 0,
			PDB: 3,
			PREFER: 1,
			PRIVATE: 2
		},
		USER_TYPE: {
			"AGENT" : 1, 	//代理
			"DIRECT" : 2, 	//直客
			"ADMIN" : 4 //超级管理
		},
		CAMPAIGN_TYPE: {
			RTB: 1, AGENT: 2
		},
		VIDEO_TYPE: 'wmv,avi,dat,asf,rm,rmvb,ram,mpg,mpeg,3gp,mov,mp4,m4v,dvix,dv,dat,mkv,vob,ram,qt,divx,cpk,fli,flc,mod',
		TERMINAL_TYPE: [
			{id: 0, name: _T('全部')},
			{id: 1, name: _T('PC')},
			{id: 2, name: _T('WEB')},
			{id: 3, name: _T('APP')},
		],
		TRADE_TYPE: [
			{id: 0, name: _T('所有投放')},
			{id: 1, name: _T('RTB')},
			{id: 2, name: _T('PD')},
			{id: 3, name: _T('PA')},
			{id: 4, name: _T('PDB')},
			{id: 5, name: _T('投放加监测')},
			{id: 6, name: _T('广告监测')}
		],
		OS_TYPE: [
			{id: 0, name: _T('全部')},
			{id: 1, name: _T('Android')},
			{id: 2, name: _T('IOS')}
		],
		
		// 自定义下载状态
		OFFLINE_STATUS: {
			DONE: 1, 		// 下载成功
			FAIL: -1, 	// 下载失败
			WAIT: -2, // 待下载
			ING: -3, // 正在下载
			PAUSE: -4 // 手动暂停
		},
		OFFLINE_TYPE: {
			COMMON: 1, SCHEDULE: 3
		},
		
		// 图文创意
		PTC: {
			TYPE: {
				ADX: 1,
				TEMPLATE: 2,
				FIELD: 3
			},
			FIELD_TYPE: {
				TEXT: 1
				, IMAGE: 2
				, HIDDEN: 3 //　文字的变形，不给用户看见
				, RADIO: 4
				, VIDEO: 5
			}
		},
		PREMIUM_RULE_TYPE: premium_rule,
		// 溢价规则
		PREMIUM_RULE: [
			{'id': premium_rule.COMMON, 'name': _T('溢价')}
		],
		MONITOR_INTERVAL: {
			"ONE_DAY": 1,
			"ONE_MONTH": 2
		},
		MONITOR_STATUS: {
			'ALL': 0,
			'RUNNING': 1,
			'PAUSED': 2,
		}
	};
});
